package com.qcs.sleep.warn.action;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by chshqiang on 15-7-25.
 * 看视频示警
 */
public abstract class GameAppWatcher extends RunAppWatcher {

    private List<Integer> levelList;

    private List<String> warnPackageNames;

    public GameAppWatcher() {
        levelList = new ArrayList<Integer>(0);
        levelList.add(2700);
        levelList.add(7200);

        warnPackageNames = new ArrayList<String>(0);
    }

    @Override
    protected boolean isTiming(String packageName) {
        return warnPackageNames.contains(packageName);
    }

    @Override
    protected boolean isMaxLevel(int level) {
        return level == levelList.size();
    }

    @Override
    protected int getLevelDuration(int level) {
        return levelList.get(level);
    }

    @Override
    protected void onWarn(int level) {
    }
}
